package cn.net.mtons.web.interceptors;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.web.servlet.HandlerInterceptor;
import org.springframework.web.servlet.ModelAndView;

/**
 * 记录用户操作日志的拦截器，该拦截器为第二层
 * @author cl
 *
 */
public class UserLogHandlerInterceptor implements HandlerInterceptor {

	
	/***
	 * 处理action请求后
	 */
	@Override
	public void afterCompletion( HttpServletRequest request, HttpServletResponse response, Object obj, Exception e ) throws Exception {
		response.setStatus(200);
			
	}

	@Override
	public void postHandle(HttpServletRequest request, HttpServletResponse response, Object obj, ModelAndView mv) throws Exception {
		response.setStatus(200);
		
	}

	@Override
	public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object obj) throws Exception {
		response.setStatus(200);
		// TODO Auto-generated method stub
		return true;
	}

}
